#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(void)
{
	int word[100]={0};
	char ch,temp[100];
	int j=0,ans=0,max=0;
	while(1)
	{
		ch=getchar();
		if(ch!=' '&&ch!='\n')
		{
			temp[j]=ch;
			j++;
		}
		else if(ch==' ')
		{
			temp[j]='\0';
			j=0;
			if(!strcmp(temp,"Azheng"))
			{
				word[0]++;if(word[0]>max){max=word[0];ans=1;}
			}
			else if(!strcmp(temp,"fantasy"))
			{
				word[1]++;if(word[1]>ans){max=word[1];ans=2;}
			}
			else if(!strcmp(temp,"fiction"))
			{
				word[2]++;if(word[2]>ans){max=word[2];ans=3;
				}
			}
			else if(!strcmp(temp,"have"))
			{
				word[3]++;if(word[3]>ans){max=word[3];ans=4;
				}
			}
			else if(!strcmp(temp,"love"))
			{
				word[4]++;if(word[4]>ans){max=word[4];ans=5;
				}
			}
			else if(!strcmp(temp,"science"))
			{
				word[5]++;if(word[5]>ans){max=word[5];ans=6;
				}
			}
			else if(!strcmp(temp,"tenet"))
			{
				word[6]++;if(word[6]>ans){max=word[6];ans=7;
				}
			}
			else if(!strcmp(temp,"the"))
			{
				word[7]++;if(word[7]>ans){max=word[7];ans=8;
				}
			}
			else if(!strcmp(temp,"read"))
			{
				word[8]++;if(word[8]>ans){max=word[8];ans=9;
				}
			}
			else if(!strcmp(temp,"recently"))
			{
				word[9]++;if(word[9]>ans){max=word[9];ans=10;
				}
			}
		}
		else
		{
			temp[j]='\0';
			if(!strcmp(temp,"Azheng"))
			{
				word[0]++;if(word[0]>max){max=word[0];ans=1;}
			}
			else if(!strcmp(temp,"fantasy"))
			{
				word[1]++;if(word[1]>ans){max=word[1];ans=2;}
			}
			else if(!strcmp(temp,"fiction"))
			{
				word[2]++;if(word[2]>ans){max=word[2];ans=3;
				}
			}
			else if(!strcmp(temp,"have"))
			{
				word[3]++;if(word[3]>ans){max=word[3];ans=4;
				}
			}
			else if(!strcmp(temp,"love"))
			{
				word[4]++;if(word[4]>ans){max=word[4];ans=5;
				}
			}
			else if(!strcmp(temp,"science"))
			{
				word[5]++;if(word[5]>ans){max=word[5];ans=6;
				}
			}
			else if(!strcmp(temp,"tenet"))
			{
				word[6]++;if(word[6]>ans){max=word[6];ans=7;
				}
			}
			else if(!strcmp(temp,"the"))
			{
				word[7]++;if(word[7]>ans){max=word[7];ans=8;
				}
			}
			else if(!strcmp(temp,"read"))
			{
				word[8]++;if(word[8]>ans){max=word[8];ans=9;
				}
			}
			else if(!strcmp(temp,"recently"))
			{
				word[9]++;if(word[9]>ans){max=word[9];ans=10;
				}
			}
			break;
		}
	}
	
	switch(ans)
	{
		case 1:printf("Azheng");break;
		case 2:printf("fantasy");break;
		case 3:printf("fiction");break;
		case 4:printf("have");break;
		case 5:printf("love");break;
		case 6:printf("science");break;
		case 7:printf("tenet");break;
		case 8:printf("the");break;
		case 9:printf("read");break;
		case 10:printf("recently");
	}
	
	return 0;
}